<?php
namespace App\Library\System\Model;

use App\Library\System\Model;

class IndexModel extends Model
{
    private static $static_index;

    public static function getInstance()
    {
        if (!self::$static_index) {
            self::$static_index = new IndexModel();
        }

        return self::$static_index;
    }

    public function getUsers()
    {
        return $this->more($this->select()
                ->from('user')
                ->columns(array(
                    'name',
                    'email',
                    'alias',
                ))
        );
    }

}